/*
 * File: E:\Kan\ARM\Projects\Google Code\Umrichter\trunk\SimulinkModelle\slprj\ert\_sharedutils\mul_u32_u32_u32_sat.c
 *
 * Code generated for Simulink model 'Fu_RotSpd'.
 *
 * Model version                  : 1.677
 * Simulink Coder version         : 8.2 (R2012a) 29-Dec-2011
 * TLC version                    : 8.2 (Dec 29 2011)
 * C/C++ source code generated on : Sat Jun 15 22:50:18 2013
 */

#include "rtwtypes.h"
#include "rtw_shared_utils.h"

uint32_T mul_u32_u32_u32_sat(uint32_T a, uint32_T b)
{
  uint32_T result;
  uint32_T u32_chi;
  uint32_T u32_clo;
  mul_wide_u32(a, b, &u32_chi, &u32_clo);
  if (u32_chi) {
    result = MAX_uint32_T;
  } else {
    result = u32_clo;
  }

  return result;
}

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
